package 对象_序列专属;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.List;

public class ObjectInputStreamTest02 {

	public static void main(String[] args) throws IOException, ClassNotFoundException {
		// 发序列化集合
		ObjectInputStream  ois = new ObjectInputStream(new FileInputStream("Student"));
		
		List<Student> list = (List<Student>)ois.readObject();
		
		for (Student student : list) {
			System.out.println(student);
		}
		
		

	}

}
